package com.ms.p2p.provider.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ms.p2p.bean.PageBean;
import com.ms.p2p.entity.redpacket.RedpacketCategory;
import com.ms.p2p.provider.RedPacketCategoryProvider;
import com.ms.p2p.service.impl.RedPacketCategoryServiceImpl;
import com.ms.p2p.service.impl.RedPacketLogServiceImpl;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by daimajia on 2015/4/19 添加dubbo接口.
 */
@Service
public class RedPacketCategoryProviderImpl implements RedPacketCategoryProvider {


    @Resource
    RedPacketCategoryServiceImpl redPacketCategoryServiceImpl;

    public List findPager(PageBean page) {
        return redPacketCategoryServiceImpl.findPager(page);
    }

    public int findCount() {
        return redPacketCategoryServiceImpl.findCount();
    }

    public RedpacketCategory get(String id) {
        return redPacketCategoryServiceImpl.get(id);
    }

    public int update(RedpacketCategory redpacketCategory) {
        return redPacketCategoryServiceImpl.update(redpacketCategory);
    }

    public int insert(RedpacketCategory redpacketCategory) {
        return redPacketCategoryServiceImpl.insert(redpacketCategory);
    }

    public void delete(String id) {
         redPacketCategoryServiceImpl.delete(id);
    }
}
